﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace App.Core.Authentication
{
    public class AppAuthorizeAttribute :  AuthorizeAttribute
    {
        public static String UserRoles { get; set; }
        protected override bool AuthorizeCore(System.Web.HttpContextBase httpContext)
        {
            base.Roles = UserRoles;
            return base.AuthorizeCore(httpContext);
        }

    }
}
